package com.lkd.service.impl;

import com.lkd.mapper.RoleMapper;
import com.lkd.service.RoleService;
import com.lkd.vo.RoleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public RoleVo selectByUserName(String userName) {
        return roleMapper.selectByUserName(userName);
    }

    @Override
    public List<RoleVo> selectAll() {
        return roleMapper.selectAll();
    }
}
